﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Albums
{
    public static class AlbumBLL
    {
        public static int GetAlbumCount(IList<Condition> conditionArray)
        {
            return AlbumDAL.GetAlbumCount(conditionArray);
        }

        public static List<AlbumEntity> GetAlbumList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return AlbumDAL.GetAlbumList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<AlbumEntity> GetAlbumList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return AlbumDAL.GetAlbumList(conditionArray, sortField, sortMode);
        }

        public static int GetShopAlbumCount(IList<Condition> conditionArray)
        {
            return AlbumDAL.GetShopAlbumCount(conditionArray);
        }

        public static List<AlbumEntity> GetShopAlbumList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return AlbumDAL.GetShopAlbumList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<AlbumEntity> GetShopAlbumList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return AlbumDAL.GetShopAlbumList(conditionArray, sortField, sortMode);
        }

        public static AlbumEntity GetAlbum(int albumID)
        {
            return AlbumDAL.GetAlbum(albumID);
        }

        public static int InsertAlbum(AlbumEntity album)
        {
            return AlbumDAL.InsertAlbum(album);
        }

        public static int UpdateAlbum(AlbumEntity album)
        {
            return AlbumDAL.UpdateAlbum(album);
        }

        public static int DeleteAlbum(int albumID)
        {
            return AlbumDAL.DeleteAlbum(albumID);
        }

        public static int SetAlbumEnable(int albumID)
        {
            return AlbumDAL.SetAlbumEnable(albumID);
        }

        public static int HitAlbum(int albumID)
        {
            return AlbumDAL.HitAlbum(albumID);
        }
    }
}
